import request from '@/utils/request'

// 查询库存记录列表
export function listInventoryRecord(query) {
  return request({
    url: '/data/inventoryRecord/list',
    method: 'get',
    params: query
  })
}

// 查询库存记录详细
export function getInventoryRecord(id) {
  return request({
    url: '/data/inventoryRecord/' + id,
    method: 'get'
  })
}

// 新增库存记录
export function addInventoryRecord(data) {
  return request({
    url: '/data/inventoryRecord',
    method: 'post',
    data: data
  })
}

// 修改库存记录
export function updateInventoryRecord(data) {
  return request({
    url: '/data/inventoryRecord',
    method: 'put',
    data: data
  })
}

// 删除库存记录
export function delInventoryRecord(id) {
  return request({
    url: '/data/inventoryRecord/' + id,
    method: 'delete'
  })
}
